package com.cq.hd.member.api.dto;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class BusinessGroupSaveDto implements Serializable {

    private Long userId;

    // 商家id
    private Long businessId;

    // 经纪人id
    private Long agentId;

    @ApiModelProperty(value = "分组id，更新必传")
    private Long id;

    @ApiModelProperty(value = "分组名称")
    private String groupName;

    @ApiModelProperty(value = "分组佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal commissionRate;

    @ApiModelProperty(value = "经纪人用户id")
    private List<Long> userIds = new ArrayList<>();

}
